# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-mobile-meta
pkgver=0.1
pkgrel=0
pkgdesc="Plasma Mobile meta package"
url="https://plasma-mobile.org"
# armhf blocked by plasma-mobile
arch="noarch !armhf"
license="GPL-3.0-or-later"
depends="
	bluedevil
	breeze
	callaudiod
	drkonqi
	elogind
	hfd-service
	iio-sensor-proxy
	iio-sensor-proxy-openrc
	kscreen
	kwallet-pam
	kwayland-integration
	modemmanager
	networkmanager-dnsmasq
	pipewire
	plasma-mobile
	polkit-kde-agent-1
	powerdevil
	pulseaudio
	tinydm
	xdg-desktop-portal-kde
	"
install="$pkgname.post-install"
source="
	000-gschema.override
	gtk-app-wayland.sh
	kdeglobals
	kdewallet.kwl
	kscreenlockerrc
	kwinrc
	maliit-plasmamobile.json
	qtlogging.ini
	"
options="!check" # No tests for a meta package

package() {
	install -Dm644 \
		"$srcdir"/kwinrc \
		-t "$pkgdir"/etc/xdg/

	install -Dm644 \
		"$srcdir"/kdeglobals \
		"$srcdir"/kscreenlockerrc \
		-t "$pkgdir"/etc/xdg

	install -Dm644 \
		"$srcdir"/qtlogging.ini \
		-t "$pkgdir"/etc/xdg/QtProject/

	install -Dm755 \
		"$srcdir"/gtk-app-wayland.sh \
		-t "$pkgdir"/etc/profile.d/

	install -Dm644 "$srcdir"/000-gschema.override \
		"$pkgdir"/usr/share/glib-2.0/schemas/000-postmarketos.gschema.override

	install -Dm644 "$srcdir"/maliit-plasmamobile.json \
		"$pkgdir"/usr/share/maliit/keyboard2/devices/plasmamobile.json

	# A pre-configured kwallet with an empty password set
	install -Dm600 "$srcdir"/kdewallet.kwl \
		"$pkgdir"/etc/skel/.local/share/kwalletd/kdewallet.kwl
}

sha512sums="
591529f147f161f5e97c979a9ad4b9f3a65e6d3b87a7bdbd020ec928155cfe5fd561cae6582c4b2831b452fe9b0a03168731771b77020fb66e09f81552ba421e  000-gschema.override
57793bb079c76ba3bdcfca7880aa887de11fe80e7a05557b78435e57feabab70fbaeedc42da3aec6f914c35bba8e8ee9918367516eb45ee247f63f694624f179  gtk-app-wayland.sh
004288752bdd3cc1aac09bd91e51b80f0793439cf638e2895dffba60ae25d63035185963a58b7cc1728c254ca39ba0c342fff7f2f4281f14903438ead44944d5  kdeglobals
923309f71ee0840ae49d610ab5c11260432f462709eee7148ee5a4703872b9926a3267b16b524162c1560e0798c63fe392a161a57be5c6000bbb1e3f0c947e25  kdewallet.kwl
20cdb856fb46b024d8368d469e9e0a9c45724fb6f27514edca9b733ea84b63644b6d0328780879285b4e649f7a02ea8761f6b607e127fb7b055b753bfd3ee3d2  kscreenlockerrc
26c54eabd2e418d7f11667972ce38754036ace10537e75082a0a2013d81b593a8602af073be88b97f93204dbebf186265de06e47e125a0850555de8097693c30  kwinrc
70ee87860842057b557a433a9ae7d54653f076a612b3d9de2d413d598806d23ec19390262eaa398cddf39437f1213d14922402a8d978878e5e98f3767ce0b9eb  maliit-plasmamobile.json
341f0b866c315f37868ef3e7137cce8b53a0e8e6164e5af71b3e8e2fa68321afbf0652d76124ef84bade1393f701748852ac939aef9daff7e272a0df827780eb  qtlogging.ini
"
